package com.cloudwise.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cloudwise.dao.BusinessDao;
import com.cloudwise.dao.BusinessVoDao;
import com.cloudwise.entity.Business;
import com.cloudwise.entity.BusinessVo;
import com.cloudwise.service.BusinessService;
import com.cloudwise.service.BusinessVoService;
import com.cloudwise.util.Constants;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Business)表服务实现类
 *
 * @author makejava
 * @since 2022-01-20 12:42:02
 */
@Service("businessVoService")
public class BusinessVoServiceImpl  implements BusinessVoService {
    @Resource
    private BusinessVoDao businessVoDao;
    @Override
    public List<BusinessVo> queryAll(Long page, Long limit,BusinessVo businessVo) {
        if (page == null) {
            page = Constants.page;
            limit = Constants.limit;
        }
        return businessVoDao.queryAll(page, limit,businessVo);
    }

    @Override
    public Long getCount() {
        return businessVoDao.getCount();
    }
}

